package com.ds.dsm.view.config.gallery;

import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.annotation.FieldAnnotation;
import com.ds.esd.custom.form.annotation.FormAnnotation;
import com.ds.esd.custom.gallery.CustomGalleryViewBean;
import com.ds.esd.tool.ui.enums.SelModeType;

@FormAnnotation()
public class GalleryRowView {


    @FieldAnnotation( colSpan = -1)
    @CustomAnnotation(caption = "行头标题")
    String gridHandlerCaption;


    @CustomAnnotation(caption = "行头宽度")
    String rowHandlerWidth;

    @CustomAnnotation(caption = "行高")
    String rowHeight;


    @CustomAnnotation(caption = "分色显示")
    Boolean altRowsBg;

    @CustomAnnotation(caption = "选中方式")
    SelModeType selMode;


    @CustomAnnotation(hidden = true, pid = true)
    public String entityClassName;
    @CustomAnnotation(hidden = true, pid = true)
    public String sourceClassName;

    @CustomAnnotation(hidden = true, uid = true)
    String methodName;

    @CustomAnnotation(hidden = true, pid = true)
    String viewInstId;
    @CustomAnnotation(hidden = true, pid = true)
    String domainId;

    public GalleryRowView() {

    }

    public GalleryRowView(CustomGalleryViewBean gridConfig) {
        this.viewInstId = gridConfig.getViewInstId();
        this.domainId = gridConfig.getDomainId();
        this.methodName = gridConfig.getMethodName();

        this.sourceClassName = gridConfig.getSourceClassName();

        this.selMode = gridConfig.getSelMode();
    }

    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }

    public String getEntityClassName() {
        return entityClassName;
    }

    public void setEntityClassName(String entityClassName) {
        this.entityClassName = entityClassName;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }

    public String getRowHandlerWidth() {
        return rowHandlerWidth;
    }

    public void setRowHandlerWidth(String rowHandlerWidth) {
        this.rowHandlerWidth = rowHandlerWidth;
    }

    public String getRowHeight() {
        return rowHeight;
    }

    public void setRowHeight(String rowHeight) {
        this.rowHeight = rowHeight;
    }

    public String getGridHandlerCaption() {
        return gridHandlerCaption;
    }

    public void setGridHandlerCaption(String gridHandlerCaption) {
        this.gridHandlerCaption = gridHandlerCaption;
    }

    public Boolean getAltRowsBg() {
        return altRowsBg;
    }

    public void setAltRowsBg(Boolean altRowsBg) {
        this.altRowsBg = altRowsBg;
    }


    public SelModeType getSelMode() {
        return selMode;
    }

    public void setSelMode(SelModeType selMode) {
        this.selMode = selMode;
    }
}
